<?php $header=$this->action('ZfcAdmin\Controller\AdminController', 'headerAction');
	  $baseUrl = $header->headerarray['baseUrl'];
?>
<div class="container">
	<?php if(!isset($_SESSION['user'])){?>
		<div class="login_top">
			<div class="login_title">
			<h2>Sign-in</h2>
			<p>&nbsp;&nbsp;If you already have an sreedd classifieds account, you may use that to sign in</p>
		   <form class="form-signin" id="loginForm"  name="loginForm" method="POST" >
				<p>Your Email Address?</p>
				<div class="controls">
					<div class="input-prepend">
						<span class="add-on">
							<i class="icon-envelope"></i>
						</span>
						<input type="text" id="inputEmail" name="inputEmail" class="input-block-level" placeholder="Email address"/>
					</div>
				</div>
				<p>Choose Password?</p>
				<div class="controls">
					<div class="input-prepend">
						<span class="add-on">
							<i class="icon-lock"></i>
						</span>
						<input type="password" id="password" name="password" class="input-block-level" placeholder="Password"/>
				</div>
				</div>
				<input type="hidden" id="mod_type" name="mod_type" value="reg_user">
				<button class="clf_btn" type="button" onclick="return validateadminLogin()">Sign in</button>&nbsp;&nbsp;<span id="reload"></span>&nbsp;&nbsp;&nbsp;&nbsp;
				<div class="login_links">
				<a href="<? echo $baseUrl?>register">Creat new account</a>
				<a href="<? echo $baseUrl?>users/forgetpassword">Forget Password?</a>
				<a href="<? echo $baseUrl?>users/forgetpassword">Resend Activation Email </a>
				</div>
		  </form>
		  </div>
		</div>
<script src="<?php echo $this->basePath() ?>/js/jquer-1.8.2.min.js" type="text/javascript"></script>		
<script>
	$('#password').keypress(function(e){
		if( e.keyCode == 13 ){
			validateadminLogin();	
		}
	});
</script>
	<?php }else{?>
		<div style="padding-top:10%">
			<h1>Home Page</h1>
		</div>
	<?}?>
</div>

	    
	
	